namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 设备配方管理
    /// </summary>
    [SugarTable("recipe_config")]
    public class RecipeConfig : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        [SugarColumn(ColumnName = "version_no")]
        public int? VersionNo { get; set; }

        /// <summary>
        /// 配方ID
        /// </summary>
        [SugarColumn(ColumnName = "recipe_id")]
        public int? RecipeId { get; set; }

        /// <summary>
        /// 配方名称
        /// </summary>
        [SugarColumn(ColumnName = "recipe_name")]
        public string RecipeName { get; set; }

        /// <summary>
        /// 工艺名称
        /// </summary>
        [SugarColumn(ColumnName = "craft_name")]
        public string CraftName { get; set; }

        /// <summary>
        /// 地址序号
        /// </summary>
        [SugarColumn(ColumnName = "item_no")]
        public int? ItemNo { get; set; }

        /// <summary>
        /// 信号地址
        /// </summary>
        [SugarColumn(ColumnName = "item_address")]
        public string ItemAddress { get; set; }

        /// <summary>
        /// 工艺数据
        /// </summary>
        [SugarColumn(ColumnName = "craft_value")]
        public string CraftValue { get; set; }

        /// <summary>
        /// 地址启用（1：启用，0：弃用）
        /// </summary>
        [SugarColumn(ColumnName = "recipe_enabled")]
        public string RecipeEnabled { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// MES上传标志位（0：未上传，1：已上传）
        /// </summary>
        [SugarColumn(ColumnName = "mes_pushed")]
        public int? MesPushed { get; set; }
    }
}